/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #333;
  background-color: #f9f9f9;
}

header {
  background-color: #4285f4;
  color: white;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-bar {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  padding: 0.3rem;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.2);
}

.status-bar.online {
  background-color: rgba(76, 175, 80, 0.2);
}

.status-bar.offline {
  background-color: rgba(244, 67, 54, 0.2);
}

main {
  flex: 1;
  padding: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

footer {
  text-align: center;
  padding: 1rem;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
}

/* 更新提示样式 */
.update-prompt {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
  border-radius: 4px;
  text-align: center;
}

.update-prompt button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #2196f3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.update-prompt button:hover {
  background-color: #1976d2;
}

/* 内容区域样式 */
.content {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #444;
}

/* 离线页面样式 */
.offline-page {
  background-color: #f5f5f5;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.offline-container {
  max-width: 500px;
  width: 100%;
}

.offline-icon {
  margin-bottom: 1.5rem;
  color: #666;
}

.offline-page h1 {
  color: #333;
  margin-bottom: 1rem;
}

.offline-page p {
  margin-bottom: 1rem;
  color: #666;
  line-height: 1.6;
}

.offline-page button {
  padding: 0.8rem 1.5rem;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  margin: 1rem 0;
}

.offline-page button:hover {
  background-color: #3367d6;
}

.offline-hint {
  font-size: 0.9rem;
  color: #888;
}